/*
 * @copyright 2011 Gerald Jacobson
 * @license GNU General Public License
 * 
 * This file is part of GameTimer.
 *
 * GameTimer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * GameTimer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with GameTimer. If not, see <http://www.gnu.org/licenses/>.
 */
package org.amphiption.gametimer.entity;

import java.util.List;

/**
 * @author Amphiprion
 * 
 */
public class TimerConfiguration extends Entity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static enum DbField {
		ID, NAME, TIMER_TYPE, DURATION, HANDICAP, OWN_TUNE, BEFORE_WARN, EVERY_WARN, OWN_TUNE_WARN, LIMIT_REPORT
	}

	public enum TimerType {
		GAME_TIMER, TURN_TIMER, TURN_TIMER_SAVE, UPCOUNT, TURN_COUNTER, SHARED_GAME_TIMER
	}

	private TimerType timerType;

	/** The duration in second. */
	private int duration;
	private String name;
	private List<Player> players;
	private boolean handicap;
	private String ownTune;
	private int beforeWarning;
	private int everyWarning;
	private String ownTuneWarning;
	private int reportLimit;

	public TimerConfiguration() {
		super();
	}

	public TimerConfiguration(String id) {
		super(id);
	}

	/**
	 * @return the timerType
	 */
	public TimerType getTimerType() {
		return timerType;
	}

	/**
	 * @return the duration
	 */
	public int getDuration() {
		return duration;
	}

	/**
	 * @return the players
	 */
	public List<Player> getPlayers() {
		return players;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public void setPlayers(List<Player> players) {
		this.players = players;
	}

	public void setTimerType(TimerType timerType) {
		this.timerType = timerType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isHandicap() {
		return handicap;
	}

	public void setHandicap(boolean handicap) {
		this.handicap = handicap;
	}

	/**
	 * @param ownTune
	 *            the ownTune to set
	 */
	public void setOwnTune(String ownTune) {
		this.ownTune = ownTune;
	}

	/**
	 * @return the ownTune
	 */
	public String getOwnTune() {
		return ownTune;
	}

	/**
	 * @param beforeWarning
	 *            the beforeWarning to set
	 */
	public void setBeforeWarning(int beforeWarning) {
		this.beforeWarning = beforeWarning;
	}

	/**
	 * @return the beforeWarning
	 */
	public int getBeforeWarning() {
		return beforeWarning;
	}

	/**
	 * @param everyWarning
	 *            the everyWarning to set
	 */
	public void setEveryWarning(int everyWarning) {
		this.everyWarning = everyWarning;
	}

	/**
	 * @return the everyWarning
	 */
	public int getEveryWarning() {
		return everyWarning;
	}

	/**
	 * @param ownTuneWarning
	 *            the ownTuneWarning to set
	 */
	public void setOwnTuneWarning(String ownTuneWarning) {
		this.ownTuneWarning = ownTuneWarning;
	}

	/**
	 * @return the ownTuneWarning
	 */
	public String getOwnTuneWarning() {
		return ownTuneWarning;
	}

	/**
	 * @param reportLimit
	 *            the reportLimit to set
	 */
	public void setReportLimit(int reportLimit) {
		this.reportLimit = reportLimit;
	}

	/**
	 * @return the reportLimit
	 */
	public int getReportLimit() {
		return reportLimit;
	}
}
